import request from '@/utils/request'

// 查询项目验收列表
export function listAcceptance(query) {
  return request({
    url: '/project/acceptance/list',
    method: 'get',
    params: query
  })
}

// 查询项目验收详细
export function getAcceptance(acceptanceId) {
  return request({
    url: '/project/acceptance/' + acceptanceId,
    method: 'get'
  })
}

// 新增项目验收
export function addAcceptance(data) {
  return request({
    url: '/project/acceptance',
    method: 'post',
    data: data
  })
}

// 修改项目验收
export function updateAcceptance(data) {
  return request({
    url: '/project/acceptance',
    method: 'put',
    data: data
  })
}

// 删除项目验收
export function delAcceptance(acceptanceId) {
  return request({
    url: '/project/acceptance/' + acceptanceId,
    method: 'delete'
  })
}
